body {
    margin: 0;
    padding: 0;
    font-family: '宋体', sans-serif;
    background-color: #527486;
    color: #FFFFCC;
}

.main-frame {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
}

.canvas {
    position: absolute;
    background-color: #9AC9D9;
}

#top-canvas {
    top: 20px;
    left: 50px;
    width: 700px;
    height: 10px;
}

#middle-canvas {
    top: 390px;
    left: 50px;
    width: 700px;
    height: 10px;
}

#bottom-canvas {
    top: 570px;
    left: 50px;
    width: 700px;
    height: 10px;
}

#function-canvas {
    top: 410px;
    left: 50px;
    width: 700px;
    height: 150px;
    background-color: #418683;
}

.message {
    position: absolute;
    font-size: 9px;
}

#message-top {
    top: 0;
    left: 380px;
}

#message-bottom {
    bottom: 0;
    left: 380px;
}

.time, .direction {
    position: absolute;
    font-size: 15px;
    text-align: center;
}

.direction-info {
    position: absolute;
    font-size: 10px;
    text-align: left;
    width: 150px;
    word-wrap: break-word;
}

#ntpc-time {
    top: 160px;
    left: 300px;
}

#n-lunar {
    top: 195px;
    left: 345px;
}

#n-ji {
    top: 500px;
    left: 80px;
    width: 600px;
    font-size: 1.2rem;
    word-wrap: break-word;
}

#n-shi-chen {
    top: 230px;
    left: 220px; /* 增加20像素 */
    width: 400px;
    word-wrap: break-word;
}

#n {
    top: 40px;
    left: 390px;
}

#n-info {
    top: 70px;
    left: 335px;
}

#s {
    top: 350px;
    left: 390px;
}

#s-info {
    top: 290px;
    left: 335px;
}

#w {
    top: 200px;
    left: 50px;
}

#w-info {
    top: 180px;
    left: 90px;
}

#e {
    top: 200px;
    left: 720px;
}

#e-info {
    top: 180px;
    left: 560px;
}

#wn {
    top: 40px;
    left: 50px;
}

#wn-info {
    top: 70px;
    left: 90px;
}

#en {
    top: 40px;
    left: 700px;
}

#en-info {
    top: 70px;
    left: 560px;
}

#ws {
    top: 350px;
    left: 50px;
}

#ws-info {
    top: 290px;
    left: 90px;
}

#es {
    top: 350px;
    left: 700px;
}

#es-info {
    top: 290px;
    left: 560px;
}
#info-input {
    width: 400px;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    position: relative;
    left: 50px;
}

#info-button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #0ABAB5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    left: 50px;
}

#info-button:hover {
    background-color: #527486;
}
.direction-info span#n-jx,
.direction-info span#s-jx,
.direction-info span#w-jx,
.direction-info span#e-jx,
.direction-info span#wn-jx,
.direction-info span#en-jx,
.direction-info span#ws-jx,
.direction-info span#es-jx {
    font-weight: bold;
    font-size: 1.2em;
}

.direction-info span#n-jx.ji,
.direction-info span#s-jx.ji,
.direction-info span#w-jx.ji,
.direction-info span#e-jx.ji,
.direction-info span#wn-jx.ji,
.direction-info span#en-jx.ji,
.direction-info span#ws-jx.ji,
.direction-info span#es-jx.ji {
    color: #FFA500; /* 温暖的颜色，例如橙色 */
}

.direction-info span#n-jx:not(.ji),
.direction-info span#s-jx:not(.ji),
.direction-info span#w-jx:not(.ji),
.direction-info span#e-jx:not(.ji),
.direction-info span#wn-jx:not(.ji),
.direction-info span#en-jx:not(.ji),
.direction-info span#ws-jx:not(.ji),
.direction-info span#es-jx:not(.ji) {
    color: black;
}
